package com.liuzhilong.infrastructure.framework.spring.component;

import com.liuzhilong.infrastructure.framework.spring.aop.TestAnno;
import org.springframework.beans.factory.BeanNameAware;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

@Component
public class TestAopTarget implements BeanNameAware {
    @Autowired
    private TestAopTarget1 testAopTarget1;
    @TestAnno
    public String doSome(String name){
        testAopTarget1.doSome(name);
       return "你好"+name;
    }
    private String beanName;
    @Override
    public void setBeanName(String name) {
        this.beanName=name;
    }
}
